package io.tim.mvc_f2.proxy.test;

import org.aopalliance.intercept.MethodInvocation;
import org.springframework.aop.support.DelegatingIntroductionInterceptor;
import org.springframework.stereotype.Component;

@Component
@SuppressWarnings("serial")
public class GreetingIntroAdvice extends DelegatingIntroductionInterceptor implements Apology {

	@Override
	public Object invoke(MethodInvocation invocation) throws Throwable {
		return super.invoke(invocation);
	}
	
	@Override
	public void saySorry(String name) {
		System.out.println("Sorry " + name);
		
	}

}
